package com.etoak.web.sys_menu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etoak.web.sys_menu.entity.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author by 孙有泽
 * @Date 2025/2/20 16:46
 * @Description
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    //根据用户id查询菜单
    List<SysMenu> queryMenuByUserId(@Param("userId") String userId);
    //根据角色id查询菜单
    List<SysMenu> queryMenuByRoleId(@Param("roleId") String roleId);

}
